package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.PcSupplementDutyTemp3;
import com.alks.function.data.dto.stockdept.pcfactorystockwork.DutyFileDto;
import com.alks.function.data.request.stockdept.pcfactorystockwork.DutyAddSub;
import com.alks.function.data.request.stockdept.pcfactorystockwork.DutyFileRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-09-26
 */
@Mapper
public interface SD_SQ_PcSupplementDutyTemp3Mapper extends BaseMapper<PcSupplementDutyTemp3> {

    /*查询责任明细*/
    List<DutyFileDto> getDutyFileQuery(String userName);

    /*新增责任归属*/
    void dutyFileAdd(@Param("request") List<DutyFileRequest> request, @Param("userName") String userName, @Param("now") LocalDateTime now, @Param("companyId") String companyId);

    /*更新责任比例*/
    void dutyFileUpdate(@Param("request") List<DutyFileRequest> request);

    void dutyFileDelete(@Param("request") DutyAddSub request, @Param("userName") String userName);

}
